﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace LSW.Wcf.App.WcfService
{
    public class SumaryTimeSheets
    {
        [Key]
        public string EmployeeID { get; set; }
        public string EmployeeName { get; set; }
        public int DayWork { get; set; }
        public int DayOff { get; set; }
        public decimal DayW { get; set; }
        public decimal DayO { get; set; }
    }

    public class ReturnResult
    {
        
        private Guid _ID = Guid.NewGuid();
        [Key]
        public Guid ID { get { return _ID; } set { _ID = value; } }
        public string Result { get; set; }
        public string ErrorMessage { get; set; }
    }

    public class WcfVObject
    {
        private Guid _ID = Guid.NewGuid();
        [Key]
        public Guid ID { get { return _ID; } set { _ID = value; } }
        public string ObjectID { get; set; }
        public string ObjectName { get; set; }
    }

    public class WcfVDebtPayment
    {
        private Guid _ID = Guid.NewGuid();
        [Key]
        public Guid ID { get { return _ID; } set { _ID = value; } }
        public string VendorID { get; set; }
        public string DocumentID { get; set; }
        public decimal Debt { get; set; }
    }

    public class WcfVDebtReciept
    {
        private Guid _ID = Guid.NewGuid();
        [Key]
        public Guid ID { get { return _ID; } set { _ID = value; } }
        public string CustomerID { get; set; }
        public string DocumentID { get; set; }
        public decimal Debt { get; set; }
    }

    public class WcfAdvanceEmployees
    {
        private Guid _ID = Guid.NewGuid();
        [Key]
        public Guid ID { get { return _ID; } set { _ID = value; } }

        [Required]
        [StringLengthAttribute(20)]
        public string EmployeeID { get; set; }

        [Required]
        [StringLengthAttribute(20)]
        public string DocumentID { get; set; }

        [Required]
        public DateTime DocumentDate { get; set; }

        [Required]
        public string ReasonID { get; set; }

        public decimal Amount { get; set; }
        public string Notes { get; set; }
    }
}